/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihle.designconceptsprinciples.question3.openorcloseprinciple.violate.model.impl;

import com.lihle.designconceptsprinciples.question3.openorcloseprinciple.violate.model.CalcInterface;
import com.lihle.designconceptsprinciples.question3.openorcloseprinciple.violate.model.NewCalcInterface;

/**
 *
 * @author user
 */
public class NeCalcImpl implements NewCalcInterface,CalcInterface {

    private int num1,num2;
    
    public NeCalcImpl(int num1,int num2){
        this.num1 = num1;
        this.num2 = num2;
    }
    @Override
    public int getNum1() {
         return num1;
    }

    @Override
    public int getNum2() {
        return num2;
    }
   
}
